﻿using SapaFinance.Domain.Model;
using Xunit;

namespace SapaFinance.Tests
{
    public class TaxRateTest
    {
        public static TaxRate Create()
    {
        return new TaxRate(18);
    }
        [Fact]
        public void CheckTaxRateCreate()
        {
            var taxRate = new TaxRate(101);
            Assert.Equal("0%", taxRate.ToString());
            taxRate = new TaxRate();
            Assert.Equal("0%", taxRate.ToString());
            taxRate = new TaxRate(18);
            Assert.Equal("18%", taxRate.ToString());
            taxRate = new TaxRate(19);
            Assert.Equal("19%", taxRate.ToString());
        }
    }
}